<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/2/5 0005
 * Time: 上午 10:24
 */

namespace app\admin\validate;

use think\Validate;
class Place  extends  Validate
{
    protected $rule= [
        'product_id'=>'require',
        'place_name'=>'require|length:2,10',
        'addr_detail'=>'require',
        'mobile'=>'require',
    ];
    protected $message=[
        'product_id'=>'请输入商品id',
        'place_name.require'=>'请输入发货人姓名',
        'place_name.length'=>'发货人姓名有误',
        'addr_detail.require'=>'请输入具体发货地址',
        'mobile'=>'请输入手机'
    ];
}